import demo1.Test;

public class Main {
    public static void main(String[] args) {
        Test.TestDemo();//静态方法直接类名即可


        Test test = new Test();


        test.setCpu("i9-1400KF");
        test.setMemory("2TB");
        test.setBrand("联想");
        System.out.println(test.getCpu());
        System.out.println(test.getMemory());
        System.out.println(test.getBrand());
        System.out.println(test.toString());
    }
}